﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace FlexySys.Common.Pattern
{
    public class Singleton
    {
        private static readonly Lazy<Singleton> _singleton =
            new Lazy<Singleton>(() => new Singleton());

        private Singleton()
        { }

        public static Singleton Instance
        {
            get
            {
                return _singleton.Value;
            }
        }
    }
}
